package cn.meizhu.pet.domain;

import cn.meizhu.base.domain.BaseDomain;
import cn.meizhu.org.domain.Shop;
import cn.meizhu.user.domain.User;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;

@Data
public class Pet extends BaseDomain {
    private String name;
    private String resources;
    private BigDecimal saleprice;
    private Date offsaletime;
    private Date onsaletime;
    private Integer state = 0;
    private BigDecimal costprice;
    @JsonFormat(pattern="yyyy-MM-dd hh:mm:ss",timezone="GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd hh:mm:ss")
    private Date createtime = new Date();
    private Long type_id;
    private cn.meizhu.pet.domain.PetType type;
    private Long shop_id;
    private Shop shop;
    private Long user_id;
    private User user;
    private Long adopt_id;
    private cn.meizhu.pet.domain.PetDetail detail = new cn.meizhu.pet.domain.PetDetail();

}
